package com.codeduck.common.enums;

/**
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @createDate: 2022-08-19
 */
public enum MicroExceptionEnum {
    CREATE_ORDER_FAIL("CREATE_ORDER_FAIL", "订单创建异常"),
    DECREASE_ACCOUNT_FAIL("DECREASE_ACCOUNT_FAIL", "账户扣费异常"),
    PARAM_ERROR("PARAM_ERROR", "入参异常"),
    PRC_ERROR("PRC_ERROR", "远程接口调用异常")
    ;

    private String code;

    private String message;

    MicroExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
